pp108 : Testing Rules Using Rule Test Tool

Testing Rules Using Rule Test Tool

This topic describes the procedure to use the rule test tool to test the behavior of a rule.


Rule Test Tool is used to simulate the execution of rules on an object. It provides a simple interface where you provide the details of the object and view the changes made to the object, when the rules are executed. The conditions along with the test results are displayed in the test execution results pane.

  1. On CUSP > My Applications App Palette, click (Rule Test Tool). Alternatively, you can right-click the required schema fragment in your workspace and select Test Rules. The Rule Test Tool window appears, displaying the Rule Details and Rule Test Results panes.
  2. Click next to the Select Entity text box. A Select Entity dialog box appears, displaying CoBOC Templates or WS-AppServer Classes on which the rules can be tested.
  3. Do one of the following:
    • To test rules built on Object Templates, select CoBOC Templates. The objects tree containing all the object templates is displayed in the pane below.
    • To test rules built on WS-AppsServer Classes, select WS-AppsServer Classes. The objects tree containing all the WS-AppsServer classes is displayed in the pane below.
  4. Traverse and select the required template or class from the object tree and click OK. The object's XML is displayed in the Business Object text box below.
  5. Select the type of rule, to be executed on the object, from the Rule Type list.
  6. Select the type of operation, to be performed on the object, from the Operation list.
  7. Select the Execute Actions check box, if you want the rule to perform external actions, like triggering a business process, invoking a Web service, or sending notifications.
  8. Provide the required parameters to the XML in the Business Object text box and click the Test Rule button. The results of the test are displayed in the Rule Execution Results pane on the Tree View tab, by default. The conditions that are satisfied are shown with a attached to them and the conditions that fail are shown with a attached to them.
  9. Click ruleset to view the definition of all the rules on the object. To view the definition of the rule, condition, or the action, click the corresponding tree item. The rules details are displayed in the text box below.
  10. Click Changed Object tab, to view the changes made to the object. The object's details are displayed on the Changed Object tab.
    The rule is tested.

Related tasks

Creating a Condition Template
Creating an Action Template
Generating a Web Service Operation on a Decision Table

Related reference

Rule Actions